﻿<?xml version="1.0" encoding="utf-8"?>
<!-- To Enable Intellisense for this Document in Visual Studio goto
Tools->Options->Text Editor->XML->Miscellaneous
and Check Automatically Download DTDs and schemas
-->
<Forms
    xmlns="AppPress"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="AppPress http://sysmates.com/AppPress.1.00.xsd ">

  <PluginForm Name="AppPressDemoMenusExtension">
    <MergedIntoForm>
      <FormName>ApplicationMaster</FormName>
    </MergedIntoForm>
    <Fields>
      <Redirect Name="Controls">
      </Redirect>
      <Button Name="Validations">
      </Button>
      <Button Name="Properties">
        <NoSubmit></NoSubmit>
      </Button>
      <Button Name="Actions">
        <NoSubmit></NoSubmit>
      </Button>
      <!--Redirect, Popups, Alert, Prompt-->
      <Redirect Name="AutoRefresh">
      </Redirect>
      <Button Name="Encryption">
        <NoSubmit></NoSubmit>
      </Button>
      <!--<Redirect Name="DataNavigation">
      </Redirect>
      <Redirect Name="Downloads">
      </Redirect>
      <Redirect Name="Skins">
      </Redirect>
      <Redirect Name="Plugins">
      </Redirect>-->
      <Redirect Name="UserControls">
      </Redirect>
      <Redirect Name="RemoteForms">
      </Redirect>
      <Redirect Name="Visualization">
      </Redirect>
      <Redirect Name="DynamicForms">
      </Redirect>
    </Fields>
  </PluginForm>

  <Form Name="Controls">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <HTML Name="TextControls">
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <Text Name="Text"></Text>
      <Number Name="Number" >
        <Required/>
        <Decimals>2</Decimals>
        <RegexValidation><![CDATA[[0-9]*$]]></RegexValidation>
      </Number>
      <Password Name="Password" ></Password>
      <TextArea Name="TextArea" ></TextArea>
    </Fields>
    <Fields Group="SelectionControls">
      <HTML Name="SelectionControls">
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <Checkbox Name="Checkbox" ></Checkbox>
      <Pickone Name="Pickone" >
        <Required/>
      </Pickone>
      <Pickone Name="PickoneRadioStyle" >
        <Style>Radio</Style>
      </Pickone>
      <Pickone Name="PickoneAutoComplete" >
        <Required/>
        <Style>AutoComplete</Style>
      </Pickone>
      <PickMultiple Name="PickMultiple" ></PickMultiple>
      <PickMultiple Name="PickMultiplePopup" >
        <Style>PopupCheckboxes</Style>
      </PickMultiple>
    </Fields>
    <Fields>
      <HTML Name="DateControls">
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <DateTime Name="DateTime" ></DateTime>
      <DateRange Name="DateRange"></DateRange>
      <HTML Name="FileUploadControls">
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <FileUpload Name="FileUpload" >
        <Accept><![CDATA[.jpg,.jpeg,.png]]></Accept>
        <Required></Required>
        <DoNotSaveInDB/>
      </FileUpload>
      <FileUpload Name="AutoFileUpload">
        <AutoUpload/>
        <Accept><![CDATA[.jpg,.jpeg,.png]]></Accept>
      </FileUpload>
      <MultiFileUpload Name="MultiFileUpload" >
        <Storage Type="Directory">
          <Directory><![CDATA[C:\Live]]></Directory>
        </Storage>
        <MaxFileSizeInKB>10</MaxFileSizeInKB>
      </MultiFileUpload>
      <HTML Name="HTMLControls">
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <HTML Name="FileUploadPreview" ></HTML>
      <HTML Name="HTMLText"></HTML>
      <HTML Name="FormContainer">
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <HTML Name="FormContainerGridWithFixedHeader">
      </HTML>
      <FormContainerGrid Name="FormContainerGridWithPopup" >
        <TableName>AppPressDemo_FormContainer</TableName>
        <RowFields Height="150">
          <SelectRow>
            <AllowMultiSelect/>
          </SelectRow>
          <Text Name="Name">
            <!--<ControlStyle><![CDATA[width:100px]]></ControlStyle>-->
          </Text>
          <DateTime Name="DateOfBirth" ></DateTime>
          <TextArea Name="Address" >
            <ControlStyle><![CDATA[width:300px]]></ControlStyle>
          </TextArea>
          <Pickone Name="Country">LabelStyle
            <LabelStyle><![CDATA[color:red;]]></LabelStyle>
            <ControlStyle><![CDATA[color:green;]]></ControlStyle>
          </Pickone>
          <Pickone Name="State" ></Pickone>
          <Pickone Name="City"></Pickone>
          <Text Name="PinCode" >
          </Text>
        </RowFields>
        <PopupFields>
          <Text Name="Name" ></Text>
          <DateTime Name="DateOfBirth" ></DateTime>
          <TextArea Name="Address" ></TextArea>
          <Pickone Name="Country" ></Pickone>
          <Pickone Name="State" ></Pickone>
          <Pickone Name="City" ></Pickone>
          <Text Name="PinCode" >
            <RegexValidation>^[a-zA-Z0-9]*$</RegexValidation>
          </Text>
        </PopupFields>
      </FormContainerGrid>
      <FormContainerGrid Name="FormContainerGridInline" >
        <TableName>AppPressDemo_FormContainer</TableName>
        <RowFields Height="200">
          <SelectRow></SelectRow>
          <Text Name="Name">
            <NonStatic/>
          </Text>
          <DateTime Name="DateOfBirth" >
            <NonStatic/>
          </DateTime>
          <Text Name="Address" >
            <NonStatic/>
          </Text>
          <Pickone Name="Country" >
            <NonStatic/>
          </Pickone>
          <Pickone Name="State" >
            <NonStatic/>
          </Pickone>
          <Pickone Name="City" >
            <NonStatic/>
          </Pickone>
          <Text Name="PinCode" >
            <NonStatic/>
            <RegexValidation>^[a-zA-Z0-9]*$</RegexValidation>
          </Text>
        </RowFields>
      </FormContainerGrid>
      <HTML Name="FormContainerDynamicControl" >
        <LabelStyle><![CDATA[width:100px]]></LabelStyle>
      </HTML>
      <Pickone Name="EmployeeStatus" ></Pickone>
      <FormContainerDynamic Name="FormContainerDynamic" >
      </FormContainerDynamic>
      <HTML Name="ActionControls">
        <DisplayName>Action Controls</DisplayName>
        <CSSClass>sectionHeading</CSSClass>
      </HTML>
      <Button Name="SubmitLink">
        <Style>Link</Style>
      </Button>
      <Button Name="Submit" ></Button>
    </Fields>
  </Form>

  <Form Name="UserControls">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <UserControlScalar Name="CurrentActiveUsers" Type="ActiveUsers"></UserControlScalar>
    </Fields>
  </Form>

  <UserControlScalarForm Name="ActiveUsers">
    <Fields>
      <Pickone Name="ActiveUsers"></Pickone>
    </Fields>
  </UserControlScalarForm>

  <Form Name="ControlValidations">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <Text Name="RequiredText" >
        <Required/>
      </Text>
      <Number Name="Number" >
        <Decimals>0</Decimals>
      </Number>
      <Text Name="Email" >
        <Required/>
        <EmailValidation></EmailValidation>
      </Text>
      <Text Name="RegexOfAlphaNumeric" >
        <Required/>
        <RegexValidation>^[a-zA-Z0-9]*$</RegexValidation>
      </Text>
      <DateTime Name="DateFormat">
        <DisplayName>DateFormat(dd-MMM-yyyy) [Ex 07-Oct-2015]</DisplayName>
      </DateTime>
      <DateRange Name="DateRange">
        <DisplayName>DateRange(ToDate must be greater then FromDate)</DisplayName>
      </DateRange>
      <Button Name="Submit" ></Button>
    </Fields>
  </Form>

  <Form Name="Actions">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <Number Name="OnChange" ></Number>
      <Pickone Name="OnChangePickone" >
      </Pickone>
      <Button Name="OnClick" >
        <Shortcut>Enter</Shortcut>
      </Button>
      <Button Name="PromptClient" >
        <Shortcut>Ctrl+p</Shortcut>
      </Button>
    </Fields>
  </Form>

  <Form Name="Properties">
    <TableName>AppPressDemo_Employee</TableName>
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <FormContainerGrid Name="ClientAccounts" >
        <TableName>AppPressDemo_ClientAccounts</TableName>
        <RowFields Width="90%">
          <SelectRow></SelectRow>
          <Text Name="Id" ></Text>
          <Text Name="Name" ></Text>
          <TextArea Name="Address" ></TextArea>
          <Pickone Name="Country" ></Pickone>
          <Text Name="Phone" ></Text>
          <Text Name="Email" >
            <EmailValidation></EmailValidation>
          </Text>
          <FormContainerGrid Name="Licenses" >
            <TableName>AppPressDemo_Licenses</TableName>
            <RowFields Width="500px">
              <ForeignKey Name="ClientAccount" ></ForeignKey>
              <Text Name="Id" ></Text>
              <Text Name="Name" ></Text>
              <DateTime Name="PurchaseDate" ></DateTime>
              <DateTime Name="ExpiryDate" ></DateTime>
              <Number Name="Payment" >
                <Decimals>0</Decimals>
              </Number>
            </RowFields>
          </FormContainerGrid>
        </RowFields>
        <PopupFields PopupWidth="800">
          <Text Name="Id" >
            <Static></Static>
          </Text>
          <Text Name="Name" ></Text>
          <TextArea Name="Address" ></TextArea>
          <Pickone Name="Country" ></Pickone>
          <Text Name="Phone" ></Text>
          <Text Name="Email" ></Text>
          <FormContainerGrid Name="Licenses" >
            <TableName>AppPressDemo_Licenses</TableName>
            <RowFields>
              <SelectRow></SelectRow>
              <ForeignKey Name="ClientAccount" ></ForeignKey>
              <Text Name="Id" ></Text>
              <Text Name="Name" ></Text>
              <DateTime Name="PurchaseDate" ></DateTime>
              <DateTime Name="ExpiryDate" ></DateTime>
              <Number Name="Payment" >
                <Decimals>0</Decimals>
              </Number>
            </RowFields>
            <PopupFields>
              <ForeignKey Name="ClientAccount" ></ForeignKey>
              <Text Name="Id" >
                <Static></Static>
              </Text>
              <Text Name="Serial" ></Text>
              <Text Name="Name" ></Text>
              <DateTime Name="PurchaseDate" ></DateTime>
              <DateTime Name="ExpiryDate" ></DateTime>
              <Number Name="Payment" >
                <Decimals>0</Decimals>
              </Number>
            </PopupFields>
          </FormContainerGrid>
        </PopupFields>
        <ContainerFields>
          <Text Name="Search" >
            <Shortcut>Enter</Shortcut>
            <DoNotSaveInDB/>
          </Text>
        </ContainerFields>
      </FormContainerGrid>
      <Pickone Name="EmployeeStatus" ></Pickone>
      <FormContainerDynamic Name="DependentForm" ></FormContainerDynamic>
      <Button Name="Save" ></Button>
    </Fields>
  </Form>

  <Form Name="Joined">
    <TableName>AppPressDemo_Joined</TableName>
    <Fields>
      <ForeignKey Name="Employee" ></ForeignKey>
      <DateTime Name="DateOfJoining" ></DateTime>
      <Text Name="Designation" ></Text>
    </Fields>
  </Form>

  <Form Name="Resigned">
    <TableName>AppPressDemo_Resigned</TableName>
    <Fields>
      <ForeignKey Name="Employee" ></ForeignKey>
      <Text Name="ResignationReason" ></Text>
      <DateTime Name="DateOfResignation" ></DateTime>
    </Fields>
  </Form>

  <Form Name="AutoRefresh">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <FileUpload Name="FileUpload" >
        <Required></Required>
      </FileUpload>
      <Button Name="LoadFile" ></Button>
      <HTML Name="EncryptionExample" >
      </HTML>
      <FormContainerDynamic Name="Encryption" ></FormContainerDynamic>
    </Fields>
  </Form>

  <Form Name="Encryption">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <TableName>AppPressDemo_Encryption</TableName>
    <Fields>
      <Text Name="AESText" >
        <Encryption Type="AES"/>
      </Text>
      <TextArea Name="DESTextArea" >
        <Encryption Type="DES"/>
      </TextArea>
      <Number Name="AESNumber" >
        <Encryption Type="AES"/>
      </Number>
      <Number Name="DESNumber" >
        <Encryption Type="DES"/>
      </Number>
      <FileUpload Name="DESFile" >
        <Encryption Type="DES"/>
      </FileUpload>
      <Button Name="Download" >
        <Style>Link</Style>
      </Button>
      <Button Name="Save" ></Button>
    </Fields>
  </Form>

  <Form Name="RemoteForms">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <Text Name="Instance"></Text>
      <FormContainerGrid Name="Notifications">
        <TableName>AppPressDemo_RemoteForms</TableName>
        <RowFields>
          <Text Name="Instance">
            <Static SubmitValue="true"></Static>
          </Text>
          <Text Name="Data"></Text>
          <Button Name="OpenPopup"></Button>
        </RowFields>
      </FormContainerGrid>
      <Button Name="RemoteRedirect">
      </Button>
    </Fields>
  </Form>

  <Form Name="Visualization">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <FormContainerGrid Name="Graphs">
        <RowFields>
          <Text Name="GraphId">
            <Hidden></Hidden>
          </Text>
          <HTML Name="Graph"></HTML>
          <Text Name="SelectedColumn">
            <Hidden></Hidden>
          </Text>
          <Button Name="Details">
            <Hidden></Hidden>
          </Button>
        </RowFields>
      </FormContainerGrid>
    </Fields>
  </Form>

  <Form Name="DynamicForms">
    <MasterFormName>ApplicationMaster</MasterFormName>
    <Fields>
      <FormContainerGrid Name="DynamicForms">
        <TableName>AppPressDemo_DynamicForms</TableName>
        <RowFields>
          <SelectRow></SelectRow>
          <Text Name="Name"></Text>
        </RowFields>
        <PopupFields>
          <Text Name="Name"></Text>
          <EmbeddedForm Name="AppPressForm"></EmbeddedForm>
        </PopupFields>
      </FormContainerGrid>
    </Fields>
  </Form>

  <Form Name="AppPressForm">
    <TableName>Application_AppPressForms</TableName>
    <Fields>
      <Text Name="FormName"></Text>
      <FormContainerGrid Name="Fields">
        <TableName>Application_AppPressFormFields</TableName>
        <RowFields>
          <SelectRow></SelectRow>
          <Text Name="FieldName"></Text>
          <Pickone Name="Type"></Pickone>
        </RowFields>
        <PopupFields>
          <ForeignKey Name="AppPressFormId"></ForeignKey>
          <Text Name="FieldName"></Text>
          <Pickone Name="Type"></Pickone>
        </PopupFields>
      </FormContainerGrid>
    </Fields>
  </Form>
  
  <Form Name="RemoteFormsPopup">
    <TableName>AppPressDemo_RemoteForms</TableName>
    <Fields>
      <Text Name="Instance">
        <Static SubmitValue="true"></Static>
        <DoNotSaveInDB></DoNotSaveInDB>
      </Text>
      <Text Name="Data">
      </Text>
      <Button Name="Save">
      </Button>
    </Fields>
  </Form>

</Forms>
